<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>我的预约记录</title>
    <style>
        table {
            width: 100%;
            border-collapse: collapse;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
    </style>
</head>
<body>
<h2>我的预约记录</h2>
<table>
    <tr>
        <th>预约记录 ID</th>
        <th>教室 ID</th>
        <th>开始时间</th>
        <th>结束时间</th>
        <th>状态</th>
    </tr>
    <c:forEach var="reservation" items="${reservations}">
        <tr>
            <td>${reservation.reservationId}</td>
            <td>${reservation.classroom.classroomId}</td>
            <td>${reservation.startDatetime}</td>
            <td>${reservation.endDatetime}</td>
            <td>${reservation.status}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>